package com.yjd.pub.app.dao.impl;

import org.springframework.stereotype.Component;
import com.yjd.comm.base.dao.impl.BaseDaoImpl;
import com.yjd.comm.app.model.PushRegidModel;
import com.yjd.pub.app.dao.IPushRegidDao;

import java.util.List;
import java.util.Map;

/**
 * <b>description</b>：推送服务数据访问层 <br>
 * <b>time</b>：2017-06-27 08:55:53 <br>
 * <b>author</b>： yangchangyan@yijiedai.com
 */
@Component("pushRegidDao")
public class PushRegidDaoImpl extends BaseDaoImpl implements IPushRegidDao {

	private static final String SQLMAPNAMESPACE = PushRegidModel.class.getName();
	private static final String PKNAME = "id";

	@Override
	public String getPrimaryKeyName() {
		return PKNAME;
	}

	@Override
	public String getSqlmapNamespace() {
		return SQLMAPNAMESPACE;
	}

	@Override
	public List<String> queryRegids(Map<String, Object> param) throws Exception {
		return this.getSqlMap(false).queryForList(getStatement("queryRegids"), param);
	}
}
